import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/manage/user/loginManage',
    method: 'post',
    data,
  })
}

export function eidtPwd(data) {
  return request({
    url: '/manage/user/updatePassword',
    method: 'post',
    data,
  })
}

export function logout() {
  return request({
    url: '/manage/user/logout',
    method: 'get',
  })
}

export function getUserPage(params) {
  return request({
    url: '/manage/user/userList',
    method: 'post',
    data: params,
  })
}

export function setUserAudit(params) {
  return request({
    url: '/manage/user/userAudit',
    method: 'post',
    data: params,
  })
}

export function getUserAuditInfo(params) {
  return request({
    url: '/manage/user/getAuditInfo',
    method: 'post',
    data: params,
  })
}
export function setUserOutOrKick(params) {
  return request({
    url: '/manage/user/outOrKick',
    method: 'post',
    data: params,
  })
}

export function setUserEmpower(params) {
  return request({
    url: '/manage/user/userEmpower',
    method: 'post',
    data: params,
  })
}
